package com.daou.smartpush.common.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateConverter {

	/**
	 * 날짜 변환 Date to String
	 * 
	 * @param date
	 * @return
	 */
	public static String getDateToString(Date date, String format) {
		String tempDate;
		
		DateFormat sdFormat = new SimpleDateFormat(format);
		tempDate = sdFormat.format(date);
		
		return tempDate;
	}
}
